package com.direct.common;

import java.util.List;

public class Pager<E> {

	private int count;
	private List<E> data;
	private int pn;
	private int pr;
	
	public int getCount() {
		return count;
	}
	
	public int getPs() {
		return (count + pr - 1) / pr;
	}
	
	public void setCount(int count) {
		this.count = count;
	}
	public List<E> getData() {
		return data;
	}
	public void setData(List<E> data) {
		this.data = data;
	}
	public Pager(int count, List<E> data, int pn, int pr) {
		super();
		this.count = count;
		this.data = data;
		this.pn = pn;
		this.pr = pr;
	}
	public Pager() {
		super();
	}
}
